
public abstract class Vehicle {
	
	//variables
	String name;
	int price;
	int wheelCount;
	int topSpeed; //in mph
	boolean isTotalled;
	boolean hasEngine;
	
	
	
	//constructor
	public Vehicle(int price, int wheelCount, int topSpeed, boolean isTotalled, boolean hasEngine){
		
		this.price=price;
		this.wheelCount=wheelCount;
		this.topSpeed=topSpeed;
		this.isTotalled=isTotalled;
		this.hasEngine=hasEngine;
		
		
	}
	
	
	
	//methods
	
	//destroys vehicle
	public boolean destroyVehicle(){
		
		isTotalled=true;
		return isTotalled;
		
	}
	
	//repairs vehicle
	public boolean repairVehicle(){
		
		isTotalled=false;
		return isTotalled;
		
	}
	
	
	
	
}
